import execjs


with open('RsaCode.js',mode='r',encoding='utf-8') as file:
    jsFile = file.read()

ctx = execjs.compile(jsFile)
res = ctx.call('getPwd','123456')
print(res)